package com.sky.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "sky.alioss")    //yml文件那里用到
@Data
public class AliOssProperties {

    private String endpoint;     //yml文件那里是横线写法，这里是用驼峰命名法，springboot会自动转化，所以是同一个属性
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;

}
